<?php

include_once 'common/dbFunction.php';



//连接数据库

$conn = new mysqli();
$conn->connect('127.0.0.1','root','root','bank');

if (!empty($conn->connect_error)) {
    echo 'MYSQL数据库连接错误: ' . $conn->connect_error;
    die;
} else {
    echo '<script>
                console.log("连接成功")
            </script>';
}


DbTools::DatabaseConnect($conn);
$data = DbTools::Select("select * from bankcard ");
print_r($data);